package cn.wolfcode.web.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.web.feign.fallback.ProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author Gekor
 * @date Create on 2021/9/11 21:01
 */
@FeignClient(name = "product-service", fallback = ProductFeignFallback.class)
public interface ProductFeignApi {
	@RequestMapping("/product/queryByIds")
	public Result<List<Product>> queryByIds(@RequestBody List<Long> ids);
}
